function ajax(_url, _data, _callback){
	$.ajax({
		type: 'post',
		url: _url,
		data: _data,
		success: function(data){
			_callback(data);
		},
		dataType: 'json',
		cache: false
	});
}

function getCookie(name) {
	var arrStr = document.cookie.split("; ");
	for (var i = 0; i < arrStr.length; i++) {
		var temp = arrStr[i].split("=");
		if (temp[0] == name)
			return unescape(temp[1]);
	}
	return undefined;
}
function delCookie(name) {
	var name = 'answerId';
	var date = new Date();
	date.setTime(date.getTime() - 10000);
	document.cookie = name + "=deleted; expires=" + date.toGMTString()+"; path=/";
}